package com.you07.learn.utils;

/**
 * @ClassName: ErrorCode
 * @Author: chenguo
 * @Data: 2019年06月06日 15时59分
 * @Description:
 * @Company: 成都灵奇空间软件
 * @Version: 1.0
 */
public enum ErrorCode {
    SUCCESS(0, "成功"),
    ERROR(-1, "失败");
    private Integer code;
    private String msg;

    private ErrorCode(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
